package com.ruoyi.yyq.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yyq.mapper.CarMerchantVerificationMapper;
import com.ruoyi.yyq.domain.CarMerchantVerification;
import com.ruoyi.yyq.service.ICarMerchantVerificationService;

/**
 * 商户认证Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-12
 */
@Service
public class CarMerchantVerificationServiceImpl implements ICarMerchantVerificationService 
{
    @Autowired
    private CarMerchantVerificationMapper carMerchantVerificationMapper;

    /**
     * 查询商户认证
     * 
     * @param id 商户认证主键
     * @return 商户认证
     */
    @Override
    public CarMerchantVerification selectCarMerchantVerificationById(Long id)
    {
        return carMerchantVerificationMapper.selectCarMerchantVerificationById(id);
    }

    /**
     * 查询商户认证列表
     * 
     * @param carMerchantVerification 商户认证
     * @return 商户认证
     */
    @Override
    public List<CarMerchantVerification> selectCarMerchantVerificationList(CarMerchantVerification carMerchantVerification)
    {
        return carMerchantVerificationMapper.selectCarMerchantVerificationList(carMerchantVerification);
    }

    /**
     * 新增商户认证
     * 
     * @param carMerchantVerification 商户认证
     * @return 结果
     */
    @Override
    public int insertCarMerchantVerification(CarMerchantVerification carMerchantVerification)
    {
        return carMerchantVerificationMapper.insertCarMerchantVerification(carMerchantVerification);
    }

    /**
     * 修改商户认证
     * 
     * @param carMerchantVerification 商户认证
     * @return 结果
     */
    @Override
    public int updateCarMerchantVerification(CarMerchantVerification carMerchantVerification)
    {
        return carMerchantVerificationMapper.updateCarMerchantVerification(carMerchantVerification);
    }

    /**
     * 批量删除商户认证
     * 
     * @param ids 需要删除的商户认证主键
     * @return 结果
     */
    @Override
    public int deleteCarMerchantVerificationByIds(Long[] ids)
    {
        return carMerchantVerificationMapper.deleteCarMerchantVerificationByIds(ids);
    }

    /**
     * 删除商户认证信息
     * 
     * @param id 商户认证主键
     * @return 结果
     */
    @Override
    public int deleteCarMerchantVerificationById(Long id)
    {
        return carMerchantVerificationMapper.deleteCarMerchantVerificationById(id);
    }

    @Override
    public CarMerchantVerification selectCarMerchantVerificationByMobile(String mobile) {
        return carMerchantVerificationMapper.selectCarMerchantVerificationByMobile(mobile);
    }

    @Override
    public CarMerchantVerification selectCarMerchantVerificationByMid(Long mid) {
        return carMerchantVerificationMapper.selectCarMerchantVerificationByMid(mid);
    }
}
